package cn.com.dcsgo.service.impl;

import cn.com.dcsgo.product.bean.Product;
import cn.com.dcsgo.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.concurrent.TimeUnit;

/**
 * ProductServiceImpl
 *
 * @author Dcsgo
 * @since 2025/3/11 9:42
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getById(Long id) {
        System.out.println("ProductServiceImpl.getById");
        return new Product(id, new BigDecimal(100), "华为手机 " + id, 100);
    }
}
